/*
 * @Author: yangni 920556271@qq.com
 * @Date: 2023-12-07 09:26:03
 * @LastEditors: YangJianFei
 * @LastEditTime: 2024-08-26 16:09:05
 * @FilePath: /yt_devop_app/lib/pages/tabs/home_tab/product_manage_home/product_manage_home_view.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yt_devops/components/app_permission/yt_bottom_navigation_bar.dart';
import 'package:yt_devops/components/app_permission/yt_tab_bar_view.dart';
import 'package:yt_devops/components/app_permission/yt_tab_view_model.dart';
import 'package:yt_devops/pages/devices/device_list/device_list_view.dart';
import 'package:yt_devops/pages/home_site_statistics/home_site_statistics_view.dart';
import 'package:yt_devops/pages/mine/mine/mine_view.dart';
import 'package:yt_devops/pages/no_permission/no_permission_view.dart';
import 'package:yt_devops/pages/operation_matainance/operation_matainance_view.dart';
import 'package:yt_devops/pages/site/site_setting/siet_elec_price_setting/site_mains_elec_detail/keep_aliver_wrapper.dart';
import 'package:yt_devops/pages/site/site_view.dart';
import 'package:yt_devops/pages/tabs/bottom_bar.dart';
import 'package:yt_devops/resources/resources.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/routers/routers.dart';
import 'product_manage_home_controller.dart';

class ProductManageHomePage extends GetView<ProductManageHomeController> {
  const ProductManageHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GetBuilder<ProductManageHomeController>(
      builder: (controller) => Scaffold(
        body:
            YtTabBarView(controller.selectedIndex, controller.permissionGroups),
        bottomNavigationBar: YtBottomNavigationBar(controller.permissionGroups,
            (int index, TabController tabController, {YtTabViewModel? data}) {
          // controller.tabController = tabController;
          controller.onItemTapped(index, data);
        }),
      ),
    );
  }
}
